package com.service.impl;

import com.mapper.HospitalMapper;
import com.pojo.Hospital;
import com.service.HospitalService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("hospitalService")
public class HospitalServiceImpl implements HospitalService {
    @Resource
    private HospitalMapper hospitalMapper;

    @Override
    public Hospital searchByHospital(String id) {
        return hospitalMapper.get(id);
    }

    @Override
    public List<Hospital> list() {
        return hospitalMapper.list();
    }
}
